﻿
namespace Patterns4Net.ArchitectureExplorer.Infrastructure.Config
{
    public interface ISettingsSerializer
    {
        /// <summary>
        /// Loads settings from given file. 
        /// </summary>
        /// <remarks>
        /// <para>It does not handle any exceptions.</para>
        /// </remarks>
        Settings Load(string filename);

        /// <summary>
        /// Saves settings to given file. 
        /// </summary>
        /// <remarks>
        /// <para>It does not handle any exceptions.</para>
        /// </remarks>
        void Save(Settings settings, string filename);
    }
}
